home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 59338 / 59338.xpi / chrome / global / tabbox.css < prev    next >
Cascading Style Sheet File  |  2010-01-01  |  5KB  |  161 lines

  1. /* ***** BEGIN LICENSE BLOCK *****
  2.  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  3.  *
  4.  * The contents of this file are subject to the Mozilla Public License Version
  5.  * 1.1 (the "License"); you may not use this file except in compliance with
  6.  * the License. You may obtain a copy of the License at
  7.  * http://www.mozilla.org/MPL/
  8.  *
  9.  * Software distributed under the License is distributed on an "AS IS" basis,
  10.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  11.  * for the specific language governing rights and limitations under the
  12.  * License.
  13.  *
  14.  * The Original Code is Mozilla Communicator client code, released
  15.  * March 31, 1998.
  16.  *
  17.  * The Initial Developer of the Original Code is
  18.  * Netscape Communications Corporation.
  19.  * Portions created by the Initial Developer are Copyright (C) 1998-2001
  20.  * the Initial Developer. All Rights Reserved.
  21.  *
  22.  * Contributor(s):
  23.  *   Joe Hewitt (hewitt@netscape.com)
  24.  *
  25.  * Alternatively, the contents of this file may be used under the terms of
  26.  * either the GNU General Public License Version 2 or later (the "GPL"), or
  27.  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  28.  * in which case the provisions of the GPL or the LGPL are applicable instead
  29.  * of those above. If you wish to allow use of your version of this file only
  30.  * under the terms of either the GPL or the LGPL, and not to allow others to
  31.  * use your version of this file under the terms of the MPL, indicate your
  32.  * decision by deleting the provisions above and replace them with the notice
  33.  * and other provisions required by the GPL or the LGPL. If you do not delete
  34.  * the provisions above, a recipient may use your version of this file under
  35.  * the terms of any one of the MPL, the GPL or the LGPL.
  36.  *
  37.  * ***** END LICENSE BLOCK ***** */
  38.  
  39. /* ===== tabbox.css =================================================
  40.   == Styles used by XUL tab-related elements.
  41.   ======================================================================= */
  42.  
  43. @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
  44.  
  45. /* ::::: tabs ::::: */
  46.  
  47. .tabs-left,
  48. .tabs-right {
  49. /*   border-bottom: 2px solid; */
  50. /* -moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow; */
  51. }
  52.  
  53. /* ::::: tabpanels ::::: */
  54.  
  55. tabpanels {
  56.   -moz-appearance: tabpanels; 
  57.   border-right: 2px solid;
  58.   border-bottom: 2px solid;
  59.   border-left: 2px solid;
  60.   padding: 8px;
  61.   background-color: #e6e6e6;
  62.   color: -moz-DialogText;
  63. }
  64. /* ::::: tab ::::: */
  65. tab 
  66.   -moz-appearance: tab;
  67.   margin-top: 2px;
  68.   border-top: 2px solid;
  69.   border-right: 2px solid;
  70.   border-left: 2px solid;
  71. -moz-border-radius-topleft: 2px;
  72. -moz-border-radius-topright: 2px;
  73.   padding: 1px 4px 2px 4px;
  74.   background-color: #e6e6e6;
  75.   color: -moz-DialogText;
  76. }
  77.  
  78. tab[chromedir="rtl"] {
  79.   -moz-border-radius-bottomleft: 1px;
  80.   -moz-border-radius-bottomright: 0px;
  81. }
  82.  
  83. .tab-text {
  84.   margin: 0 !important;
  85. }
  86.  
  87. tab[selected="true"] {
  88.   -moz-user-focus: normal;
  89.   margin-top: 0;
  90.   border-bottom-color: transparent;
  91.   padding: 1px 6px 4px 6px;
  92. }
  93.  
  94. tab:focus > .tab-middle {
  95.   /* Don't specify the outline-color, we should always use initial value. */
  96. /*   outline: 1px dotted; */
  97. }
  98.  
  99. tab[beforeselected="true"]:not([chromedir="rtl"]),
  100. tab[selected="true"][chromedir="rtl"] + tab {
  101.   -moz-appearance: tab-left-edge;
  102.   border-right: none;
  103.   -moz-border-radius-topright: 0;
  104. }
  105.  
  106. tab[selected="true"]:not([chromedir="rtl"]) + tab,
  107. tab[beforeselected="true"][chromedir="rtl"] {
  108.   -moz-appearance: tab-right-edge;
  109.   border-left: none;
  110.   -moz-border-radius-topleft: 0;
  111. }
  112.  
  113. tab:first-of-type[selected="true"] {
  114.   padding-right: 5px;
  115.   padding-left: 5px;
  116. }
  117.  
  118. /* ::::: tab-bottom ::::::::::
  119.    :: Tabs that are attached to the bottom of a panel, but not necessarily
  120.    :: a tabpanels.
  121.    ::::: */
  122.  
  123.  
  124. .tab-bottom { 
  125.   margin-top: 0;
  126.   margin-bottom: 2px;
  127.   border-top: 1px solid;
  128.   border-bottom: 2px solid;
  129.   -moz-border-radius-topleft: 0;
  130.   -moz-border-radius-topright: 0;
  131.   -moz-border-radius-bottomright: 2px;
  132.   -moz-border-radius-bottomleft: 2px;
  133.   padding: 2px 4px 1px 4px;
  134. }
  135.  
  136. .tab-bottom[selected="true"] {
  137.   margin-bottom: 0;
  138.   -moz-border-top-colors: -moz-Dialog;
  139.   padding: 4px 6px 1px 6px;
  140. }
  141.  
  142. .tab-bottom[beforeselected="true"]:not([chromedir="rtl"]),
  143. .tab-bottom[selected="true"][chromedir="rtl"] + .tab-bottom {
  144.   -moz-border-radius-bottomright: 0;
  145. }
  146.  
  147. .tab-bottom[selected="true"]:not([chromedir="rtl"]) + .tab-bottom,
  148. .tab-bottom[beforeselected="true"][chromedir="rtl"] {
  149.   -moz-border-radius-bottomleft: 0;
  150. }
  151.  
  152. /* ::::: tabs-bottom ::::: */
  153.  
  154. .tabs-bottom > .tabs-left,
  155. .tabs-bottom > .tabs-right {
  156.   border-top: 1px solid ThreeDShadow;
  157.   border-bottom: none;
  158. }
  159.  
  160.